<?php $customers = $form->getObject() ?>
<h1><?php echo $customers->isNew() ?  __("New ") : __("Edit ") ?> <?php echo __("Customers") ?></h1>

<form action="<?php echo url_for('customers/update'.(!$customers->isNew() ? '?customers_id='.$customers->getCustomersId() : '')) ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
  <table>
    <tfoot>
      <tr>
        <td colspan="2">
          &nbsp;<a href="<?php echo url_for('customers/index') ?>"><?php echo __("Cancel") ?></a>
          <?php if (!$customers->isNew()): ?>
            &nbsp;<?php echo link_to('Delete', 'customers/delete?customers_id='.$customers->getCustomersId(), array('post' => true, 'confirm' => 'Are you sure?')) ?>
          <?php endif; ?>
          <input type="submit" value=<?php echo __("Save") ?> />
        </td>
      </tr>
    </tfoot>
    <tbody>
      <?php echo $form->renderGlobalErrors() ?>
      <tr>
        <th><?php echo $form['customers_gender']->renderLabel() ?></th>
        <td>
          <?php echo $form['customers_gender']->renderError() ?>
          <?php echo $form['customers_gender'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['customers_firstname']->renderLabel() ?></th>
        <td>
          <?php echo $form['customers_firstname']->renderError() ?>
          <?php echo $form['customers_firstname'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['customers_lastname']->renderLabel() ?></th>
        <td>
          <?php echo $form['customers_lastname']->renderError() ?>
          <?php echo $form['customers_lastname'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['customers_dob']->renderLabel() ?></th>
        <td>
          <?php echo $form['customers_dob']->renderError() ?>
          <?php echo $form['customers_dob'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['customers_email_address']->renderLabel() ?></th>
        <td>
          <?php echo $form['customers_email_address']->renderError() ?>
          <?php echo $form['customers_email_address'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['customers_telephone']->renderLabel() ?></th>
        <td>
          <?php echo $form['customers_telephone']->renderError() ?>
          <?php echo $form['customers_telephone'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['customers_fax']->renderLabel() ?></th>
        <td>
          <?php echo $form['customers_fax']->renderError() ?>
          <?php echo $form['customers_fax'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['customers_password']->renderLabel() ?></th>
        <td>
          <?php echo $form['customers_password']->renderError() ?>
          <?php echo $form['customers_password'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['customers_newsletter']->renderLabel() ?></th>
        <td>
          <?php echo $form['customers_newsletter']->renderError() ?>
          <?php echo $form['customers_newsletter'] ?>

        <?php echo $form['customers_id'] ?>
        </td>
      </tr>
    </tbody>
  </table>
</form>
